package org.NooLab.nlp.structures;

import java.io.Serializable;
import java.util.ArrayList;

import org.NooLab.utilities.net.GUID;




public class NlpDataPackage 
								implements 
											Serializable,
											NlpDataPackageIntf{

	String guid;
	
	ArrayList<String> textitems = new ArrayList<String>(); 
	
	
	// ========================================================================
	public NlpDataPackage (){
		guid = GUID.randomvalue() ;
	}
	// ========================================================================

	@Override
	public void addItem(String str){
		if ((str!=null) && (str.length()>10)){
			textitems.add(str);
		}
	}
	@Override
	public int size(){
		return textitems.size();
	}
	@Override
	public void clear(){
		textitems.clear();
	}
	
	@Override
	public String getGuid() {
		return guid;
	}

	
	public void setGuid(String guid) {
		this.guid = guid;
	}

	@Override
	public ArrayList<String> getTextitems() {
		return textitems;
	}

	@Override
	public void setTextitems(ArrayList<String> textitems) {
		this.textitems = textitems;
	}
	
	
	
}
